/*
 * logicports.h
 *
 *  Created on: Sep 13, 2012
 *      Author: jacco
 */

#ifndef LOGICPORTS_H_
#define LOGICPORTS_H_

#define LOGIC_0 0
#define LOGIC_1 1
#define LOGIC_X 2

/**
 *
 * @param a
 * @return
 */
int not_gate (int a);

/**
 *
 * @param a
 * @param b
 * @return
 */
int or_gate (int a, int b);

/**
 *
 * @param a
 * @param b
 * @return
 */
int nor_gate (int a, int b);

/**
 *
 * @param a
 * @param b
 * @return
 */
int and_gate (int a, int b);

/**
 *
 * @param a
 * @param b
 * @return
 */
int nand_gate (int a, int b);

/**
 *
 * @param a
 * @param b
 * @return
 */
int xor_gate (int a, int b);

/**
 *
 * @param a
 * @param b
 * @return
 */
int xnor_gate (int a, int b);

#endif /* LOGICPORTS_H_ */
